package com.yumeko.service;

import com.yumeko.utils.ResponseData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "seata-storage-service")
public interface TStorageService {

    @PostMapping("storage/decrease")
    ResponseData decrease(@RequestParam("productId") Long productId,
                          @RequestParam("count") Integer count);

}
